<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\ShopCatlogItems
 *
 * @property int $id
 * @property int $catid
 * @property int $itemid
 * @property-read \App\Models\Item $item
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopCatlogItems newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopCatlogItems newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopCatlogItems query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopCatlogItems whereCatid($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopCatlogItems whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ShopCatlogItems whereItemid($value)
 * @mixin \Eloquent
 */
class ShopCatlogItems extends Model
{
    protected $table = 'shop_catlog_items';
    protected $primaryKey = 'id';
    protected $fillable = ['catid', 'itemid'];

    public $timestamps = false;

    /**
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function item()
    {
        return $this->belongsTo(Item::class, 'itemid', 'itemid');
    }
}
